package main

import (
	"goland-study/go_code/basis/testCode/model"
)

func main() {
	// model.ForTest()
	// model.Jiandan()

	// n := 10
	// m := 100
	// model.Swap(&n,&m)
	// fmt.Println(n,m)

	//闭包练习
	//funcdemo := model.MakeSuffix(".jpg")
	//fmt.Println(model.MakeSuffix(".jpg")("asdfsf"))

	//时间戳练习
	//start := time.Now().Unix()
	//model.TimeTest()
	//end := time.Now().Unix()
	//fmt.Println(end - start)

	//错误处理
	//model.Month()
	//model.RandomNum()

	//struct json转换
	//fmt.Println(model.ToJSON(model.Student{
	//	"name",23,
	//}))

	//struct 方法绑定
	//fmt.Printf("stu 地址:%p",&model.Student{})
	//fmt.Println(model.StrFunc(&model.Student{}))

	//重写string方法
	//fmt.Println(&model.Student{"tom", 12})

	//面向对象练习
	//var v = model.Visitor{
	//	Name: "sfsd",
	//	Age: 12,
	//}
	//fmt.Println(v.Play())
	//fmt.Println(v)

	//interface的断言
	//model.InterfaceConvert()
	//model.TypeJudgeTest()
	//
	//ints := make(chan int)
	//fmt.Println(ints)

	//file练习
	//model.FileCharNum()

	//通道练习
	model.GoroutineTest()
	//model.GoroutineTest2()
}
